From 20ad83907573303f06c08340d90955b7ab588627 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 3 Jan 2022 14:07:25 +0000 Subject: [PATCH] tests: Don't drop chdir()'s return value on the floor Avoid a compile time warning, and ensure that the test suite is actually doing its job. --- testsuite/reftests/gtk-reftest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/reftests/gtk-reftest.c b/testsuite/reftests/gtk-reftest.c index 3872f554dc..1dd1a080f2 100644 --- a/testsuite/reftests/gtk-reftest.c +++ b/testsuite/reftests/gtk-reftest.c @@ -552,7 +552,7 @@ main (int argc, char **argv) * is the same as the reftest data, because we're using the * "file" property of GtkImage as a relative path in builder files. */ - chdir (basedir); + g_assert (chdir (basedir) == 0); g_log_set_writer_func (log_writer, NULL, NULL); -- 2.30.2